package com.pzhuweb.sgblog.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.pzhuweb.sgblog.domain.dto.ArticleDto;
import com.pzhuweb.sgblog.domain.entity.Article;
import com.pzhuweb.sgblog.domain.utils.ResponseResult;
import com.pzhuweb.sgblog.domain.vo.ArticleVo;

import java.util.List;

public interface ArticleService extends IService<Article> {
    ResponseResult<?> hotArticle();

    ResponseResult<?> articleList(Integer pageNum,Integer pageSize,Long categoryId);

    ResponseResult<?> getArticlesDetail(Long id);

    ResponseResult<?> updateViewCount(Long id);

    ResponseResult<?> addArticle(ArticleDto articleDto);


    ResponseResult<?> getList(Integer pageNum, Integer pageSize, String title, String summary);

    ResponseResult<?> getArticle(Long id);

    ResponseResult<?> updateArticle(ArticleVo articleVo);

    ResponseResult<?> deleteArticleByIds(List<Long> ids);
}
